package xinxin.com.InterpreterPattern.expression.impl;

import xinxin.com.InterpreterPattern.expression.Expression;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/4/9 21:13
 */
public class Scale extends Expression {
    @Override
    public void Excute(String key, double value) {
        String scale = "";
        switch ((int) value) {
            case 1:
                scale = "低音";
                break;
            case 2:
                scale = "中音";
                break;
            case 3:
                scale = "高音";
                break;
        }
        System.out.println(scale);
    }
}
